<html xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui" 
      >
    <ui:composition template="layout.xhtml">
        <ui:define name="corpo">
            <h:form id="form-upload" enctype="multipart/form-data">  
                <div id="breadcrumb">
                    <p:commandLink  actionListener="#{managerIndex.redirect('index.xhtml')}" value="Inicio" update="@form" immediate="true"/> >
                    <p:commandLink  actionListener="#{managerIndex.redirect('config.xhtml')}" value="Configurações" update="@form" immediate="true"/> >
                    <p:commandLink  value="Cadastro Automático" update="@form" immediate="true"/>
                </div>
                <p:panel header="Cadastro Automático">
                    <p:messages showDetail="true"/>
                    <fieldset>
                        <legend>Arquivos</legend> 
                            
                            <h:panelGrid columns="2" styleClass="textAlignRight" columnClasses="textAlignRight">
                                <h:outputLabel value="Arquivo Ato:"/> 
                                <p:fileUpload value="#{managerUpload.fileAto}" mode="simple" />  
                                <h:outputLabel value="Arquivo Emolumento:"/>
                                <p:fileUpload value="#{managerUpload.fileEmol}" mode="simple"/>  
                            </h:panelGrid>
                           
                    </fieldset>
                     <br/>
                            <center>
                                <p:commandButton icon="ui-icon-transfer-e-w" value="Submeter Arquivos" ajax="false"
                                                actionListener="#{managerUpload.upload}"/>  
                                <p:commandButton icon="ui-icon-arrowreturnthick-1-w" value="Cancelar" actionListener="#{managerIndex.redirect('config.xhtml')}" update="@form"/>
                            </center>
             </p:panel>
            </h:form>  
        </ui:define>
    </ui:composition>
</html>

